import 'package:ac/data/ac_user_manager.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';

import 'ac_home_state.dart';

class AcHomeLogic extends GetxController {
  final AcHomeState state = AcHomeState();

  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();
    _initData();
  }

  void _initData() async {
    EasyLoading.show(status: 'loading...', maskType: EasyLoadingMaskType.black);
    await AcUserManager.initBloggerListCompleter.future.catchError((e){
      EasyLoading.dismiss();
    });
    await AcUserManager.initVideoListCompleter.future.catchError((e){
      EasyLoading.dismiss();
    });
    EasyLoading.dismiss();
  }
}
